package com.lee.chain.mapper;

import com.lee.chain.entity.ChainOfResponsibility;

/**
 * @author zfl_a
 * @date 2020/8/11
 * @project springboot_design_pattern
 */
public interface ChainOfResponsibilityMapper {

    /**
     * 查询此种类中的第一个handler
     * @param kindHandler
     * @return
     */
    ChainOfResponsibility findTopChain(String kindHandler);

    /**
     * 查询当前的handler
     * @param handler
     * @return
     */
    ChainOfResponsibility findCurrentHandler(String handler);
}
